/*
Copyright (C) 2010  Christoph Schnack 

    This file is part of Tribuit.

    Tribuit is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Tribuit is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Tribuit.  If not, see <http://www.gnu.org/licenses/>.
*/
package Inflection;

import java.awt.*;
import java.awt.event.*;

import javax.swing.*;

import Settings.*;
import Storage.*;
import GuiTools.*;

/**
 * InflectDialog provides logic and GUI for inflecting words. There are conjugateDialog and ConjugateDialog.
 * 
 * @author Christoph Schnack
 *
 */

public class Inflection{
	TribuitFrame INFLECTFRAME;
	Settings SET;
	Language LANG;
	Storage MAINVOC;
	Color BGCOLOR=new Color(255,126,0);
	public Inflection(String mode,Storage strg,Settings set){
		SET = set;
		MAINVOC=strg;
		LANG= SET.getLanguage();
		if(mode.equals("declinate")) new DeclinateDialog();
		if(mode.equals("conjugation")) new ConjugateDialog(MAINVOC,SET);
	}
	
	class DeclinateDialog{
		public DeclinateDialog(){
			INFLECTFRAME = new TribuitFrame(LANG.getMenuDeclinate());
			JButton okButton = new JButton("ok");
			okButton.addActionListener(new ActionListener(){
				public void actionPerformed(ActionEvent e){
					
				}
			});
			JButton cancelButton = new JButton(LANG.getCancel());
			cancelButton.addActionListener(new ActionListener(){
				public void actionPerformed(ActionEvent e){
					
				}
			});
			INFLECTFRAME.addPanel("north", new Header(LANG.getMenuDeclinate()));
		}
	}
}